//
//  Person.m
//  YYCache的简单使用
//
//  Created by chenleping on 2018/6/20.
//  Copyright © 2018年 IAPTest. All rights reserved.
//

#import "Person.h"

#import <YYModel.h>
@implementation Person

//- (void)encodeWithCoder:(NSCoder *)aCoder {
//    [aCoder encodeObject:self.name forKey:@"name"];
//}
//- (instancetype)initWithCoder:(NSCoder *)aDecoder{
//    self = [super init];
//    self.name = [aDecoder decodeObjectForKey:@"name"];
//    return self;
//}

//重写以下几个方法
- (void)encodeWithCoder:(NSCoder*)aCoder {
    [self yy_modelEncodeWithCoder:aCoder];
}

- (id)initWithCoder:(NSCoder*)aDecoder
{
    self = [super init];
    return [self yy_modelInitWithCoder:aDecoder];
}

@end
